#ifndef _MYFUNCTIONS_H_
#define _MYFUNCTIONS_H_

extern Sprite* CreateChild(SpritePTR parent, Vector2* pos);
extern Vector2 GetShortestDir(Vector2 initPos, Vector2 goalPos, int count, Vector2 dir);
extern int Astar(Vector2 initPos, Vector2 goalPos, int count, Vector2 dir);
extern Vector2 GetControllerDir();
extern Sprite* GetClickedSprite(int x, int y);
extern Vector2 ConvertToVectorDir(const int dir);
extern bool CheckCollisionTile(const MapData* binaryMap, const Vector2 nextPos);
extern Vector2 GetNextTile(const Vector2 pos, const Vector2 dir);
extern Vector2 ConvertToTile(const Vector2 pos);
extern Vector2 GetRandomDir(Vector2 pos, Vector2 dir);
extern Sprite** LoadMap(MapData* map);
extern bool CheckForPlayer(Vector2 dir);
extern Vector2 GetNegativeVector(Vector2 vect);
extern Vector2 GetCurrentTile(const Vector2 pos);
extern bool CheckCollisionVector(const MapData* binaryMap, const Vector2 nextPos);

#endif
